package cn.wangzengqiang.study.designpattern.factory.own.c;


import cn.wangzengqiang.study.designpattern.factory.own.a.Hele;
import cn.wangzengqiang.study.designpattern.factory.own.a.JiaCountyHele;
import cn.wangzengqiang.study.designpattern.factory.own.a.ShaanxiHele;
import cn.wangzengqiang.study.designpattern.factory.own.a.ShanxiHele;

/**
 * 上海饸饹店
 */
public class ShanghaiHeleStore extends HeleStore {
    @Override
    public Hele createHele(String type) {
        Hele hele = null;
        if (type.equals("Jiaxian")) {
            hele = new JiaCountyHele();
        } else if (type.equals("Shanxi")) {
            hele = new ShanxiHele();
        } else if (type.equals("Shaanxi")) {
            hele = new ShaanxiHele();
        }
        return hele;
    }
}
